package businesslogic.teachPlanBl;

import java.util.ArrayList;

import businesslogicservice.teachPlanblservice.TeachPlanblservice;
import dataservice.ResultMessage;
import vo.teachPlanVO.TeachPlanVO;

public class TeachPlanController {
	
	public ArrayList<TeachPlanVO> getPlanBySemester(String semester ,String department) throws Exception{
		try {
			TeachPlanblservice teachPlan=new TeachPlan();
			return teachPlan.getPlanBySemester(semester,department);
		} catch (Exception e) {
			throw e;
		}
		
	}
	
	public ArrayList<TeachPlanVO> getUnselectedCourse(String department)throws Exception{
		TeachPlanblservice teachPlan=new TeachPlan();
		return teachPlan.getUnselectedCourse(department);
	}
	
	public ArrayList<TeachPlanVO> getPlanByDepartment(String department)throws Exception{
		TeachPlanblservice teachPlan=new TeachPlan();
		return teachPlan.getPlanByDepartment(department);
	}
	
	public ResultMessage addTeachPlan(TeachPlanVO teachPlanVO)throws Exception{
		TeachPlanblservice teachPlan=new TeachPlan();
		return teachPlan.addTeachPlan(teachPlanVO);
	}
	
	public ResultMessage removeTeachPlan(TeachPlanVO teachPlanVO)throws Exception{
		TeachPlanblservice teachPlan=new TeachPlan();
		return teachPlan.removeTeachPlan(teachPlanVO);
	}
}
